{% set namespace = "AWS/Cognito" %}
{% set dff_api_title = "AWS-Cognito Collection" %}
{% set dff_api_crontab = "* * * * *" %}

{% extends "base_template" %}
{% block import %}
{{ super() }}
import integration_aws_cognito__main as obj_main
import integration_aws_cloudwatch__main as monitor_main
{% endblock %}

{% block account %}
{{ super() }}
{% endblock %}

{% block collect_configs %}
collector_configs = {
    'regions': {{ repr(collector.regions) }}
}


monitor_configs = {
    'regions': {{ repr(collector.regions) }},
    'targets': [
        {% if collector.cognito_metrics %}
        {
            'namespace': 'AWS/Cognito',
            'metrics'  : {{ repr(collector.cognito_metrics) }}
        },
        {% endif %}
        {% if collector.usage_metrics %}
        {
            'namespace': 'AWS/Usage',
            'metrics'  : {{ repr(collector.usage_metrics) }}
        }
        {% endif %}
    ]
}

{% endblock %}

{% block filters%}
{% endblock %}

{% block run %}
{{ super() }}
{% endblock %}
